package golf.stockdata.framework.ability;

import golf.stockdata.framework.common.Ability;
import golf.stockdata.framework.exception.ApplicationException;

import java.sql.Connection;

import org.hibernate.service.spi.ServiceException;

public interface DatabaseAbility extends Ability {

    /**
     * Get a database connection.
     * @return connection Database Connection
     * @throws ServiceException error sending message
     */
    public Connection  getConnection() throws ApplicationException;

    public void close(Connection conn);
    
    public boolean isPooled();
}
